﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_Login1.aspx.cs" Inherits="admin_Login" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>彩票后台管理</title> 
    <script src="/App_Themes/js/jquery-1.8.2.min.js" type="text/javascript"></script> 
    <script type="text/javascript">
        DD_belatedPNG.fix('*');
    </script>
    <script language="JavaScript">
        if (window != top)
            top.location.href = location.href;
</script> 
</head>
<body>

<script type="text/javascript">
    function form_longin_submit() { 
        if (jQuery('#username').val().length < 2) {
            alert("用户名长度过短!");
            document.getElementById("checkCode_img").src = "/Ajax/registerjf.aspx?t=" + (new Date().toTimeString());                  
            return;
        }        
        else if (jQuery('#userpass').val().length < 6) {
            alert("密码长度过短!");
            document.getElementById("checkCode_img").src = "/Ajax/registerjf.aspx?t=" + (new Date().toTimeString());                 
            return;
        } else {
            var rs = jQuery('#username').val();
            var rpass = jQuery('#userpass').val(); 
            jQuery.ajax({
                url: "/Ajax/MemberLogin.ashx",
                data: { t: 's_admin_login', username: rs, userpass: rpass },
                type: "POST",
                success: function (data) {
                    if (data + '' == 'True' || data + '' == 'true') {
                        window.location.href = '/manage/Mainframeset.aspx';
                    } else if (data + '' == 'fck' || data + '' == 'Fck') {
                        alert('验证码错误!');                    
                    } else {
                        alert('用户名或密码错误!');                              
                    }
                }
            });
        }
    }
</script>

    
    <form id="form1" runat="server">
    <div class="max1">
      <div class="max1_head">
    <span class="logo"> </span>
</div><div class="max1_center">
              <div class="max1_left"> 
              <div  style="width:532px; height:auto; float:left;">
                   <span style="font-size:50px; color:#555555; font-family:微软雅黑;">彩票后台管理</span><br/><br/><br/>             
                   </div>                 
                   
              </div> 
              <div class="max1_right">
                  <div class="max1_right1" style="font-size:18px;color:#555555;font-family:微软雅黑;">
                   <strong>管理员登录</strong>
                   </div>                   
                   <div>用户名 <input maxlength="16" name="username" id="username" /> <br />
                   </div>               
                   <div>
                   密&nbsp;&nbsp;码 <input maxlength="16" name="userpass" id="userpass" type="password" /><br/><br/> 
                        <a onclick="javascript:form_longin_submit();">提交 </a>
                   </div>
                   <div   class="max1_right2">
                   </div>
              </div>
         </div><div class="clear"></div> 
    </div>
    </form>
</body>
</html>
